<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

/*
 |--------------------------------------------------------------------------
 | Website details
 |--------------------------------------------------------------------------
 | These details are used in email sent by Auth library.
 */

$config['website_name'] 				= '';
$config['webmaster_email']				= '';

/*
 |--------------------------------------------------------------------------
 | Database table
 |--------------------------------------------------------------------------
 |
 | Determines table that used by Auth.
 |
 | 'table_prefix' allows you to specify table prefix that will be use by the rest of the table.
 |
 | For example specifying '' in 'table_prefix' and 'users' in 'users_table',
 | will make Auth user 'users' as users table.
 |
 */

$config['table_prefix']					= '';
$config['users_table'] 					= 'users';
$config['user_profile_table']		 	= 'user_profile';
$config['user_temp_table'] 				= 'user_temp';
$config['user_autologin'] 				= 'user_autologin';
$config['roles_table'] 					= 'roles';
$config['permissions_table'] 			= 'permissions';
$config['login_attempts_table']			= 'login_attempts';

/*
 |--------------------------------------------------------------------------
 | Password salt
 |--------------------------------------------------------------------------
 |
 | You can add major salt to be hashed with password.
 | For example, you can get salt from here: https://www.grc.com/passwords.htm
 |
 | Note:
 |
 | Keep in mind that if you change the salt value after user registered,
 | user that previously registered cannot login anymore.
 |
 */

$config['salt'] 						= '';

/*
 |--------------------------------------------------------------------------
 | Registration related settings
 |--------------------------------------------------------------------------
 |
 | 'email_activation' = Requires user to activate their account using email after registration.
 | 'email_activation_expire' = Time before users who don't activate their account getting deleted from database. Default is 48 Hours (60*60*24*2).
 | 'email_account_details' =  Email account details after registration, only if 'email_activation' is FALSE.
 |
 */

$config['email_activation'] 			= FALSE;
$config['email_activation_expire'] 		= 60*60*24*2;
$config['email_account_details'] 		= FALSE;

/*
 |--------------------------------------------------------------------------
 | Login settings
 |--------------------------------------------------------------------------
 |
 | 'login_using_username' = Determine if user can use username in username field to login.
 | 'login_using_email' = Determine if user can use email in username field to login.
 |
 | You have to set at least one of settings above to TRUE.
 |
 | 'login_record_ip' = Determine if user IP address should be recorded in database when user login.
 | 'login_record_time' = Determine if time should be recorded in database when user login.
 |
 */

$config['login_using_username']			= TRUE;
$config['login_using_email'] 			= TRUE;
$config['login_record_ip'] 				= TRUE;
$config['login_record_time'] 			= TRUE;

/*
 |--------------------------------------------------------------------------
 | Auto login settings
 |--------------------------------------------------------------------------
 |
 | 'autologin_cookie_name' = Determine auto login cookie name.
 | 'autologin_cookie_life' = Determine auto login cookie life before expired. Default is 1 month (60*60*24*30).
 |
 */

$config['autologin_cookie_name'] 		= 'autologin';
$config['autologin_cookie_life'] 		= 60*60*24*30;

/*
 |--------------------------------------------------------------------------
 | Login attempts
 |--------------------------------------------------------------------------
 |
 | 'count_login_attempts' = Determine if Auth should count login attempt when user failed to login.
 | 'max_login_attempts' =  Determine max login attempt before function is_login_attempt_exceeded() returning TRUE.
 |
 */

$config['count_login_attempts'] 		= TRUE;
$config['max_login_attempts'] 			= 10;

/*
 |--------------------------------------------------------------------------
 | Forgot password settings
 |--------------------------------------------------------------------------
 |
 | 'forgot_password_expire' = Time before forgot password key become invalid. Default is 15 minutes (900 seconds).
 |
 */

$config['forgot_password_expire'] 		= 900;

/*
 |--------------------------------------------------------------------------
 | Captcha
 |--------------------------------------------------------------------------
 |
 | You can set catpcha that created by Auth library in here.
 | 'captcha_directory' = Directory where the catpcha will be created.
 | 'captcha_fonts_path' = Font in this directory will be used when creating captcha.
 | 'captcha_font_size' = Font size when writing text to captcha. Leave blank for random font size.
 | 'captcha_grid' = Show grid in created captcha.
 | 'captcha_expire' = Life time of created captcha before expired, default is 3 minutes (180 seconds).
 | 'captcha_expire' = Determine captcha case sensitive or not.
 |
 */

$config['captcha_path'] 				=  './assets/captcha/';
$config['captcha_fonts_path'] 			= $config['captcha_path'].'fonts';
$config['captcha_width'] 				= 320;
$config['captcha_height'] 				= 95;
$config['captcha_font_size'] 			= '';
$config['captcha_grid'] 				= TRUE;
$config['captcha_expire'] 				= 180;
$config['captcha_case_sensitive'] 		= TRUE;

/*
 |--------------------------------------------------------------------------
 | reCAPTCHA
 |--------------------------------------------------------------------------
 |
 | If you are planning to use reCAPTCHA function, you have to set reCAPTCHA key here
 | You can get the key by registering at http://recaptcha.net
 |
 */

$config['recaptcha_public_key'] 		= '';
$config['recaptcha_private_key'] 		= '';


/*
 |--------------------------------------------------------------------------
 | URI
 |--------------------------------------------------------------------------
 |
 | Determines URI that used for redirecting in Auth library.
 | 'deny_uri' = Forbidden access URI.
 | 'login_uri' = Login form URI.
 | 'activate_uri' = Activate user URI.
 | 'reset_password_uri' = Reset user password URI.
 |
 | These value can be accessed from Auth library variable, by removing '' string.
 | For example you can access 'deny_uri' by using $this->auth->deny_uri in controller.
 |
 */

$config['deny_uri'] 					= '/authenticate/deny/';
$config['login_uri'] 					= '/authenticate/login/';
$config['banned_uri'] 					= '/authenticate/banned/';
$config['activate_uri'] 				= '/authenticate/activate/';
$config['reset_password_uri'] 			= '/authenticate/reset_password/';


/*
 |--------------------------------------------------------------------------
 | Helper configuration
 |--------------------------------------------------------------------------
 |
 | Configuration below is actually not used in function in Auth library.
 | They just used to help you coding more easily in controller.
 | You can set it to blank if you don't need it, or even delete it.
 |
 | However they can be accessed from Auth library variable, by removing '' string.
 | For example you can access 'register_uri' by using $this->auth->register_uri in controller.
 |
 */

// Registration
$config['allow_registration'] 			= TRUE;
$config['captcha_registration'] 		= TRUE;

// Login
$config['captcha_login'] 				= FALSE;

// URI Locations
$config['logout_uri']					= '/authenticate/logout/';
$config['register_uri'] 				= '/authenticate/register/';
$config['forgot_password_uri']		 	= '/authenticate/forgot_password/';
$config['change_password_uri'		] 	= '/authenticate/change_password/';
$config['cancel_account_uri'] 			= '/authenticate/cancel_account/';

// Forms view
$config['login_view'] 					= 'authenticate/login_form';
$config['register_view'] 				= 'authenticate/register_form';
$config['forgot_password_view'] 		= 'authenticate/forgot_password_form';
$config['change_password_view'] 		= 'authenticate/change_password_form';
$config['cancel_account_view'] 			= 'authenticate/cancel_account_form';

// Pages view
$config['deny_view'] 					= 'authenticate/general_message';
$config['banned_view'] 					= 'authenticate/general_message';
$config['logged_in_view'] 				= 'authenticate/general_message';
$config['logout_view'] 					= 'authenticate/general_message';

$config['register_success_view'] 		= 'authenticate/general_message';
$config['activate_success_view'] 		= 'authenticate/general_message';
$config['forgot_password_success_view'] = 'authenticate/general_message';
$config['reset_password_success_view'] 	= 'authenticate/general_message';
$config['change_password_success_view'] = 'authenticate/general_message';

$config['register_disabled_view'] 		= 'authenticate/general_message';
$config['activate_failed_view'] 		= 'authenticate/general_message';
$config['reset_password_failed_view'] 	= 'authenticate/general_message';

?>